package com.open.capacity.prints.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;


@Data
public class CnkmExcelModel implements IExcelDataModel, IExcelModel {
    //行号
    private Integer rowNum;
    //错误消息
    private String errorMsg;


    @Excel(name = "科目编号*",width = 20)
    @NotBlank(message = "[科目编号]不能为空")
    private String code;
    @Excel(name = "科目名称*",width = 30)
    @NotBlank(message = "[科目名称]不能为空")
    private String name;
    @Excel(name = "科目简称",width = 20)
    private String simpleName;
    @Excel(name = "科目全称",width = 30)
    private String fullName;
    @Excel(name = "余额方向*", replace = {"借_1", "贷_2"})
    private Integer yefx;
    @Excel(name = "是否项目核算*", replace = {"是_1", "否_0"})
    private Integer isXmHs;
    @Excel(name = "是否部门核算*", replace = {"是_1", "否_0"})
    private Integer isBmHs;
    @Excel(name = "是否往来核算*", replace = {"是_1", "否_0"})
    private Integer isWlHs;
    @Excel(name = "是否票据号核算*", replace = {"是_1", "否_0"})
    private Integer isPjhHs;
    @Excel(name = "是否案件核算*", replace = {"是_1", "否_0"})
    private Integer isAjHs;
    @Excel(name = "备注",width = 30)
    private String remark;


}
